package com.tsmti.task.utils;

import com.tsmti.task.entity.ScheduleJob;

/**
 * @Package：com.tsmti.task.utils
 * @Class：ScheduleJobUtils
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/5/15 22:51
 * @Company:
 * @Version：
 * @Modified By:
 */
public class ScheduleJobUtils {
    public static com.tsmti.core.quartz.data.ScheduleJob entityToData(ScheduleJob scheduleJobEntity) {
        com.tsmti.core.quartz.data.ScheduleJob scheduleJob = new com.tsmti.core.quartz.data.ScheduleJob();
        scheduleJob.setBeanClass(scheduleJobEntity.getBeanClass());
        scheduleJob.setCronExpression(scheduleJobEntity.getCronExpression());
        scheduleJob.setDescription(scheduleJobEntity.getDescription());
        scheduleJob.setIsConcurrent(scheduleJobEntity.getIsConcurrent());
        scheduleJob.setJobName(scheduleJobEntity.getJobName());
        scheduleJob.setJobGroup(scheduleJobEntity.getJobGroup());
        scheduleJob.setJobStatus(scheduleJobEntity.getJobStatus());
        scheduleJob.setMethodName(scheduleJobEntity.getMethodName());
        scheduleJob.setSpringBean(scheduleJobEntity.getSpringBean());
        return scheduleJob;
    }
}